import { dayjs } from 'element-plus'
export function setCssVar(key: string, value: any, dom = document.documentElement) {
    dom.style.setProperty(key, value)
}

export function dataFormat(date: string,formatStr:string){
    return dayjs(date).format(formatStr)
}